<%@ include file="/include/taglibs.jsp"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="${ctx}/css/menuGrey.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx}/script/JBF/button.js"></script>
<script type="text/javascript" src="${ctx}/script/menu.js"></script>
</head>
<body>
	<div style="width:180px;border: solid 1px #E6E6E6;padding:0px; margin:0px;">
		<div class='helpMenuTitle'><div class='helpTitleText'>帮助中心</div></div>
		<div style="border:none width:100%;" id="menuDiv" name="menuDiv"></div>
	</div>
</body>
<script type="text/javascript">
	function linkFun(url){
		window.location.href=url;
	}
	(function buildMenuTree() {
		 //var menuList = msg.pageList;
		 var menusData = {
		 showType : "",
		 cssStyle : "",
		 datas : [ {
				showName : "常见问题",
				code : "00001",
				url : "www.baidu.com",
				subNodes : [ {
					showName : "代购常见问题",
					code : "000011",
					url : "www.sina.com.cn"
				}, {
					showName : "积分优惠问题",
					code : "000012",
					url : "www.qq.com.cn"
				}, {
					showName : "订单包裹配送问题",
					code : "000012",
					url : "${ctx}/orderinfo/orderforminfoAction!searchMyOrderInfo.action"
				}, {
					showName : "售后相关问题",
					code : "000012",
					url : "www.qq.com.cn"
				} , {
					showName : "支付及退款问题",
					code : "000012",
					url : "www.qq.com.cn"
				}, {
					showName : "自助购相关问题",
					code : "000012",
					url : "www.qq.com.cn"
				} , {
					showName : "本地购相关问题",
					code : "000012",
					url : "www.qq.com.cn"
				}, {
					showName : "直销商品相关问题",
					code : "000012",
					url : "www.qq.com.cn"
				}, {
					showName : "其它问题",
					code : "000012",
					url : "www.qq.com.cn"
				}]
			}, {
				showName : "客户反馈",
				code : "00002",
				url : "www.baidu.com",
				subNodes : [ {
					showName : "我要咨询",
					code : "000021",
					url : "www.sina.com.cn"
				}, {
					showName : "我要投诉",
					code : "000022",
					url : "www.qq.com.cn"
				}, {
					showName : "客户评价",
					code : "000022",
					url : "www.qq.com.cn"
				}]
			}, {
				showName : "联系采购",
				code : "00002",
				url : "www.baidu.com",
				subNodes : [ {
					showName : "售前",
					code : "000021",
					url : "www.sina.com.cn"
				}, {
					showName : "售后",
					code : "000022",
					url : "www.qq.com.cn"
				}]
			} ],
		 linkFun:linkFun
		 };
		 menu=new LeftMenu(menusData,"menu");
		 JBF.el("menuDiv").innerHTML=menu.show();
	 //注：将datas:menuList;来代替现有的datas节点的值
	 })();
		function selectMenuByCode(code){
			menu.selectedMenu("000021");
		}
		selectMenuByCode();
		
//获取账户信息
$(document).ready(function(){
	//获取购物车商品数量
	var name="${loginuser.username}";
	if(name!=null && name!=''){
		var ajaxUrl="${ctx}/account/accountAction!ajaxForMyAccount.action";
		$.ajax({
			type: "post",
			url: ajaxUrl,
			dataType: "json",
			data:{"timeTemp":new Date().getTime()},   
			success: function(data){
				  if(data!=null && data!=''){
					  //设值
					     $("#balance").html(data.balance);
				  }
				}
			});
	}
});
</script>
</html>